-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jandex plugin from flaky test #15153
Remove jandex plugin from flaky test #15153
Conversation
Thanks @glefloch. It seems like the Gradle tests are failing on Windows, is it related? |
Yes, this test fails on multiple PRs and I try to fix it. But it looks like my fix isn't enough. I will keep working on it. |
0b474cc
to
ff3b979
Compare
@aloubyansky I updated the include build discovery process and removed the usage of the |
private void addSubstitutedProject(final DependencyImpl dep, File projectFile) { | ||
dep.addPath(new File(projectFile, MAIN_RESOURCES_OUTPUT)); | ||
File classesOutput = new File(projectFile, CLASSES_OUTPUT); | ||
for (File languageDirectory : classesOutput.listFiles()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
listFiles
may return null if classesOutput
isn't a valid directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, I will add a check on this one.
for (File sourceDirectory : moduleOutput.getSourceDirectories()) { | ||
dep.addPath(sourceDirectory); | ||
private void addSubstitutedProject(final DependencyImpl dep, File projectFile) { | ||
dep.addPath(new File(projectFile, MAIN_RESOURCES_OUTPUT)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this path always exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a check too, we have seen some project with no resource directory.
That is supposed to cover the default layout, right? It could still be different in some projects? |
@aloubyansky, the output layout should not differ a lot. Usually, there is custom layout for tests. |
ff3b979
to
68539a7
Compare
Makes sense, thanks! |
68539a7
to
567c953
Compare
CI looks good (at least on the Gradle front) but I'm not really qualified to review this PR. @aloubyansky if everything is OK for you, I let you approve and merge? |
This removes the jandex plugin from a sample test project. On windows, it looks the
jandex
task was running after thejar
task which is not correct.